package com.example.easybuy.mappers;

import com.example.easybuy.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface UserMapper {
    User findUser(String loginName);

    int register(Map<String, Object> map);

    int updateUser(Map<String,Object> map);

    int delUser(int id);

    List<User> userByPage(Map<String,Object> map);

}
